﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace EntityFramework.Migrations
{
    public partial class _0404 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "Moeny",
                table: "T_BuyRecord",
                newName: "Money");

            migrationBuilder.RenameColumn(
                name: "Location",
                table: "T_Activity",
                newName: "Localhost");

            migrationBuilder.AddColumn<int>(
                name: "Value",
                table: "T_VipModel",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "State",
                table: "T_BuyRecord",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Value",
                table: "T_VipModel");

            migrationBuilder.DropColumn(
                name: "State",
                table: "T_BuyRecord");

            migrationBuilder.RenameColumn(
                name: "Money",
                table: "T_BuyRecord",
                newName: "Moeny");

            migrationBuilder.RenameColumn(
                name: "Localhost",
                table: "T_Activity",
                newName: "Location");
        }
    }
}
